package com.ruoyi.project.dj.service.impl;

import com.ruoyi.project.dj.domain.DjStandardCategory;
import com.ruoyi.project.dj.mapper.DjStandardCategoryMapper;
import com.ruoyi.project.dj.service.IDjStandardCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 支部标准化 - 分类表
 */
@Service
public class DjStandardCategoryServiceImpl implements IDjStandardCategoryService {
    @Autowired
    private DjStandardCategoryMapper djStandardCategoryMapper;

    @Override
    public List<DjStandardCategory> selectDjStandardCategoryList(DjStandardCategory djStandardCategory) {
        return djStandardCategoryMapper.selectDjStandardCategoryList(djStandardCategory);
    }

    @Override
    public DjStandardCategory selectDjStandardCategoryById(Integer id) {
        return djStandardCategoryMapper.selectDjStandardCategoryById(id);
    }

    @Override
    public int insertDjStandardCategory(DjStandardCategory djStandardCategory) {
        return djStandardCategoryMapper.insertDjStandardCategory(djStandardCategory);
    }

    @Override
    public int updateDjStandardCategory(DjStandardCategory djStandardCategory) {
        return djStandardCategoryMapper.updateDjStandardCategory(djStandardCategory);
    }

    @Override
    public int deleteDjStandardCategoryById(Integer id) {
        return djStandardCategoryMapper.deleteDjStandardCategoryById(id);
    }
}